package com.newlink.building.record.mvp.model

import com.newlink.building.common_base.base.BaseModel
import com.newlink.building.common_base.http.Base_RetrofitHelper
import com.newlink.building.common_base.model.bean.HttpResult
import com.newlink.building.common_base.model.bean.SecurityRecordData
import com.newlink.building.record.mvp.contract.Module_Record_SecurityRecordContract
import io.reactivex.Observable

/**
 * @author wangyang
 * @date 2022/9/29
 * @description 记录-安防记录页面的Model
 */
class Module_Record_SecurityRecordModel : BaseModel(), Module_Record_SecurityRecordContract.Model {

    override fun getSecurityRecordList(
        token: String,
        page: Int,
        limit: Int
    ): Observable<HttpResult<SecurityRecordData>> {
        return Base_RetrofitHelper.service.getSecurityRecordList(token, page, limit)
//        KcpTaskHelper.instance.requestSecurityLogs(
//            SecurityLogsRequest(
//                accessToken = token,
//                uId = userId,
//                requestType = "securityRecord/list",
//                data = ListRequestBody(
//                    page , limit
//                )
//            )
//        )
    }
}